﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;

namespace Aribaccio.Device
{
    /// <summary>
    /// 定义结构体输入无符号短整型ushort
    /// </summary>
    [StructLayoutAttribute(LayoutKind.Sequential, CharSet = CharSet.Ansi, Pack = 1)]
    public struct StructInputShort
    {
        /// <summary>
        /// 寄存器数量/寄存器值
        /// </summary>
        public ushort RegisterData { get; set; }

        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="argRegisterData"></param>
        public StructInputShort(ushort argRegisterData)
        {
            this.RegisterData = argRegisterData;
        }
    }
}
